package edu.zju.udms.dnavigator.entities.mysql;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.Timestamp;

public class JDBCExample {
	public static void main(String[] args) throws Exception {
		Connection conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306?user=root&password=root");
		Statement stmt = conn.createStatement();
		ResultSet res = stmt.executeQuery("select * from information_schema.tables");
		while(res.next()){
			Timestamp start = res.getTimestamp("create_time");
			System.out.println(start);
			System.out.println(start.getTime());
		}
	}
}
